<template>
  <div>
    <van-nav-bar
      title="邀请返利"
      left-text="返回"
      left-arrow
      @click-left="onClickLeft"
    />
    <div style="text-align: center">
      <span style="font-size: 20px;">开发中...</span>
    </div>
  </div>
</template>

<script>
import { Field, CellGroup, Button, NavBar } from 'vant'
export default {
  components: {
    [Field.name]: Field,
    [CellGroup.name]: CellGroup,
    [Button.name]: Button,
    [NavBar.name]: NavBar
  },
  data () {
    return {
      userInfo: null
    }
  },
  mounted () {
    this.getUserInfo()
  },
  methods: {
    // 返回上一页的方法
    onClickLeft () {
      this.$router.go(-1)
    },
    getUserInfo () {
      this.userInfo = JSON.parse(localStorage.getItem('userInfo'))
    },
    logout () {
      // this.$store.commit('logout')
      localStorage.clear()
      this.$router.push({ name: 'home' })
    }
  }
}
</script>

<style scoped lang="less">
.account-title{
  position: relative;
  text-align: center;
  width: 100%;
  /*height: 20%;*/
  height: 30%;
  padding-top: 10px;
  padding-bottom: 10px;
  font-weight: 600;
  font-size: large;
}
.tab_home_account{
  height: 70%;
  width: 100%;
}
.account-content{
  margin-top: 15px;
  box-shadow: 0 0.1875rem 1.25rem #e2e6e5;
  background-color: white;
  height: 30%;
  padding: 15px 0 15px 0;
  font-size: 15px;
  .account-phone{
    padding-left: 20px;
    font-weight: 550;

  }
  .phone{
    color: #969799;
    font-size: 13px;
    float: right;
    padding-right: 20px;
  }
}
.account-button{
  margin: 30px 10px 0 10px;
}
</style>
